<?php include (TEMPLATEPATH . '/header2.php'); ?>

<script>
  $(document).ready(function(){
    $('#menu-news').addClass('active');
  });
</script>

	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div id="news" class="section">
      <div class="column full last last-row">
        <a href="<?php the_permalink(); ?>">
          <div class="pic container">
            <?php
              $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
            ?>
            <img src="<?php echo $feat_image ?>" />
          </div>
          <div class="description">
            <h3><?php echo $post->post_title ?></h3>
            <p><?php echo substr(strip_tags($post->post_content), 0, 50); ?></p>
          </div>
        </a>
      </div>
      <div class="clear"></div>
    </div>
    <div id="news_detail" class="section">
      <div class="news-content">
        <?php echo $post->post_content; ?>
      </div>
      <a href="<?php bloginfo('url') ?>/category/news" class="back">back to news</a>
    </div>
  
	<?php endwhile; endif; ?>

<?php get_footer(); ?>